#include <stdio.h>

int main(){

    int a[4][4] = {{1, 2, 3 ,4},{1, 2, 3 ,4},{1, 2, 3 ,4},{1, 2, 3 ,4}};
    int *pa;

    pa = a[1];

    printf("a[1][3] = %d\n", *(pa + 3));
    printf("a[1][3] = %d\n", *(a[1] + 3));

    int (*apr)[4];

    apr = a;
    printf("*apr[0] = %d\n", *apr[0]);
    printf("*(apr[0] + 1) = %d\n", *(apr[0] + 1));
    printf("*apr[1] = %d\n", *apr[1]);

    for(apr = a; apr < &a[4]; apr++){// apr++ 的增加的字节长度等于4个int长度
        int *p;
        for(p = (int *)apr; p < &(*(apr[0] + 4)); p++)
        //for(p = *apr; p <&(*apr)[4] ; p++)
            printf("%d\n", *p);
    }

    return 0;
}